package com.tbs.parkingsaleapp.Http.Listenner;

import abstergo.tbs.betterasyc.AsycBase.IAsycBackgroundAction;
import com.alibaba.fastjson.JSON;
import com.tbs.parkingsaleapp.Http.HttpHelper;
import com.tbs.parkingsaleapp.Http.JsonData.LoginResult;
import com.tbs.parkingsaleapp.SystemManager.NetWorkSetting;
import com.tbs.parkingsaleapp.UI.LoginOrSign.Base.FaceLoginFragment;

public class FaceLoginHttper implements IAsycBackgroundAction<String, LoginResult> {

    FaceLoginFragment ffg;
    public FaceLoginHttper(FaceLoginFragment fg)
    {
        ffg=fg;
    }

    @Override
    public LoginResult BackGroundAction(String... params)throws Exception {
        String r= HttpHelper.Get(NetWorkSetting.FaceLoginUrl(params[0],params[1]));
        return JSON.parseObject(r,LoginResult.class);
    }
}
